'''
Created on 2014年9月4日

@author: loseair123
'''
class Student():
    name=''
    @property
    def age(self):
        return self._age
    @age.setter
    def age(self,value):
        if not isinstance(value, int):
            raise ValueError('score must be an integer!')
        if value < 0 or value > 100:
            raise ValueError('score must between 0 ~ 100!')
        self._score = value 
s=Student()
s.age=55
s.age="a"
